import Mock from "mockjs";
import {getLocalStorage} from "../common/util";

const callServiceIdList = {
  status:'success',
  'data|19': [
    {
      CALLSERVICE_ID: '@string(32)',
      'STATE|1':[0,1,2],//0-未响应 1-已响应 2-已完成
    }
  ]
}

const callServiceList = {
  status:'success',
  'data|8':[
    {
      CALLSERVICE_ID: '@string(32)',
      'REMARK|1':['','@csentence'],
      'CUSTOMER_NAME|1':['','@cname'],
      'PHONE|1': ['13567686796','13756462564','13354657567'],
      RESPONSER: '@cname',
      'response_DEPARTMENT|1':['营销部','市场部','楼面部','演义部','工程部'],
      RESPONSE_DATETIME:'@datetime("yyyy-MM-dd HH:mm")',
      REQUEST_DATETIME:'@datetime("yyyy-MM-dd HH:mm")',
      'STATE|1':[0,1,2],//0-未响应 1-已响应 2-已完成
      'TYPE|1':[1,2,3],//呼叫类型 1-服务 2-存酒 3-投诉建议
      'DETAIL_TYPE|1':['服务类','酒水类','环境类'],
      'ROOM_PLATFORM_TYPE|1': ['散台','卡座','高卡','包厢'],
      'AREA|1':['大厅区','吧台区','包厢区'],
      'NUMBER|1':['A1台','B1台','C1台','M1台','A2台','B2台','C2台','M2台','A3台','B3台','C3台','M3台','1号房'],
      'callDetails|1-5':[
        {
          CALLDETAILS_ID:'@string(32)',
          REQUEST_DATETIME:'@datetime("yyyy-MM-dd HH:mm")',
          'STATE|1':[0,1],//0-未响应 1-已响应
          RESPONSER: '@cname',
          'response_DEPARTMENT|1':['营销部','市场部','楼面部','演义部','工程部'],
          RESPONSE_DATETIME:'@datetime("yyyy-MM-dd HH:mm")'
        }
      ]
    }
  ]
}

const callServiceDetail = {
  status:'success',
  data:{
    CALLSERVICE_ID: '@string(32)',
    'REMARK|1':['','@csentence'],
    'CUSTOMER_NAME|1':['','@cname'],
    'PHONE|1': ['13567686796','13756462564','13354657567'],
    RESPONSER: '@cname',
    'response_DEPARTMENT|1':['营销部','市场部','楼面部','演义部','工程部'],
    RESPONSE_DATETIME:'@datetime("yyyy-MM-dd HH:mm")',
    REQUEST_DATETIME:'@datetime("yyyy-MM-dd HH:mm")',
    'STATE|1':[0,1,2],//0-未响应 1-已响应 2-已完成
    'TYPE|1':[1,2,3],//呼叫类型 1-服务 2-存酒 3-投诉建议
    'DETAIL_TYPE|1':['服务类','酒水类','环境类'],
    'ROOM_PLATFORM_TYPE|1': ['散台','卡座','高卡','包厢'],
    'AREA|1':['大厅区','吧台区','包厢区'],
    'NUMBER|1':['A1台','B1台','C1台','M1台','A2台','B2台','C2台','M2台','A3台','B3台','C3台','M3台','1号房'],
    'callDetails|1-5':[
      {
        CALLDETAILS_ID:'@string(32)',
        REQUEST_DATETIME:'@datetime("yyyy-MM-dd HH:mm")',
        'STATE|1':[0,1],//0-未响应 1-已响应
        RESPONSER: '@cname',
        RESPONSER_ID: getLocalStorage('userId_sales_index' + sessionStorage.getItem('index')),
        'response_DEPARTMENT|1':['营销部','市场部','楼面部','演义部','工程部'],
        RESPONSE_DATETIME:'@datetime("yyyy-MM-dd HH:mm")'
      }
    ]
  }
}

const noticeStatus = {
  status:'success',
  msg:'后端返回的提示信息'
}

export {callServiceIdList,callServiceList,callServiceDetail,noticeStatus}
